
/*
 *	MCreator note: This file will be REGENERATED on each build.
 */
package net.mcreator.toolsasfood.init;

import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.event.RegistryEvent;

import net.minecraft.world.effect.MobEffect;

import net.mcreator.toolsasfood.potion.WoodenShovelBrokeDirtMobEffect;
import net.mcreator.toolsasfood.potion.WoodenPickaxeBrokeCoalMobEffect;
import net.mcreator.toolsasfood.potion.WoodenHoeTPItemMobEffect;
import net.mcreator.toolsasfood.potion.WarpedFungusStickStandLavaMobEffect;
import net.mcreator.toolsasfood.potion.StonePickaxeChainMobEffect;
import net.mcreator.toolsasfood.potion.ShearsKillSheepsMobEffect;
import net.mcreator.toolsasfood.potion.NetheriteShovelKillMobEffect;
import net.mcreator.toolsasfood.potion.NetheritePickaxeIngotMobEffect;
import net.mcreator.toolsasfood.potion.NetheriteAxeBrokeLeavesMobEffect;
import net.mcreator.toolsasfood.potion.IronShovelSummonDirtMobEffect;
import net.mcreator.toolsasfood.potion.IronPickaxeBrokeMobEffect;
import net.mcreator.toolsasfood.potion.IronHoeJumpMobEffect;
import net.mcreator.toolsasfood.potion.GoldenHoeBrokeHayBaleMobEffect;
import net.mcreator.toolsasfood.potion.DiamondPickaxeFindOreMobEffect;
import net.mcreator.toolsasfood.potion.DiamondHoePlowingMobEffect;
import net.mcreator.toolsasfood.potion.CrossbowArrowAttackMobEffect;
import net.mcreator.toolsasfood.potion.CarrotStickSummonPigMobEffect;
import net.mcreator.toolsasfood.potion.BowSummonArrowMobEffect;

import java.util.List;
import java.util.ArrayList;

@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class ToolsAsFoodModMobEffects {
	private static final List<MobEffect> REGISTRY = new ArrayList<>();
	public static final MobEffect CARROT_STICK_SUMMON_PIG = register(new CarrotStickSummonPigMobEffect());
	public static final MobEffect CROSSBOW_ARROW_ATTACK = register(new CrossbowArrowAttackMobEffect());
	public static final MobEffect BOW_SUMMON_ARROW = register(new BowSummonArrowMobEffect());
	public static final MobEffect GOLDEN_HOE_BROKE_HAY_BALE = register(new GoldenHoeBrokeHayBaleMobEffect());
	public static final MobEffect NETHERITE_PICKAXE_INGOT = register(new NetheritePickaxeIngotMobEffect());
	public static final MobEffect WARPED_FUNGUS_STICK_STAND_LAVA = register(new WarpedFungusStickStandLavaMobEffect());
	public static final MobEffect IRON_SHOVEL_SUMMON_DIRT = register(new IronShovelSummonDirtMobEffect());
	public static final MobEffect IRON_PICKAXE_BROKE = register(new IronPickaxeBrokeMobEffect());
	public static final MobEffect DIAMOND_PICKAXE_FIND_ORE = register(new DiamondPickaxeFindOreMobEffect());
	public static final MobEffect WOODEN_HOE_TP_ITEM = register(new WoodenHoeTPItemMobEffect());
	public static final MobEffect SHEARS_KILL_SHEEPS = register(new ShearsKillSheepsMobEffect());
	public static final MobEffect NETHERITE_SHOVEL_KILL = register(new NetheriteShovelKillMobEffect());
	public static final MobEffect NETHERITE_AXE_BROKE_LEAVES = register(new NetheriteAxeBrokeLeavesMobEffect());
	public static final MobEffect WOODEN_PICKAXE_BROKE_COAL = register(new WoodenPickaxeBrokeCoalMobEffect());
	public static final MobEffect IRON_HOE_JUMP = register(new IronHoeJumpMobEffect());
	public static final MobEffect WOODEN_SHOVEL_BROKE_DIRT = register(new WoodenShovelBrokeDirtMobEffect());
	public static final MobEffect STONE_PICKAXE_CHAIN = register(new StonePickaxeChainMobEffect());
	public static final MobEffect DIAMOND_HOE_PLOWING = register(new DiamondHoePlowingMobEffect());

	private static MobEffect register(MobEffect effect) {
		REGISTRY.add(effect);
		return effect;
	}

	@SubscribeEvent
	public static void registerMobEffects(RegistryEvent.Register<MobEffect> event) {
		event.getRegistry().registerAll(REGISTRY.toArray(new MobEffect[0]));
	}
}
